<?php
  require_once('../practice/db.php');

if( getFileName($_SERVER['HTTP_REFERER']) != 'show_all_images.php'){
  //header('location:show_all_images.php');
}


  $id = isset($_GET['id'])?$_GET['id']:0;
  $image_details = findById('uploaded_images', $id);
  pr($image_details);
?>
<form action="update_save_image.php" enctype="multipart/form-data" method="post">

<input type="text" name="id" value="<?=$image_details['id']?>" />
<input type="text" name="last_path" value="<?=$image_details['path']?>" />

  Image Name :   <input type="text" name="title" value="<?=$image_details['title']?>"/><br><br>
  Uplaod :   <input type="file" name="path" />

<img src="uploads/<?=$image_details['path']?>" height="90" width="120">

  <br><br><br>
  <input type="submit" value="Click Here to Edit.. " />
</form>

